<%@ page language="java" import="java.util.*" import="com.quarter.vo.User" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>实习实训管理系统</title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="zhong">
  <div class="banner"><img src="images/img_2.gif" /></div>
   <div class="menu">
    <div class="menusel" style="width:95px;">
      <h2><a href="login.jsp">首页</a></h2>
    </div>
    
    
    <div id="menu1" class="menusel">
      <h2><a href="adminInfo.jsp">个人中心</a></h2>
      <div class="position">
        </div>
      </div>
      <div id="menu2" class="menusel">
      <h2><a href="upload.jsp">文件上传</a></h2>
      <div class="position">
        </div>
      </div>
      
      
      <div id="menu4" class="menusel">
      <h2><a href="comInfo.jsp">企业信息发布与修改</a></h2>
      <div class="position">
        </div>
      </div>
      <div id="menu5" class="menusel">
      <h2><a href="match.jsp">学生企业实习分配</a></h2>
      <div class="position">
        </div>
      </div>
      <div id="menu6" class="menusel">
      <h2><a href="admin.jsp">返回</a></h2>
      <div class="position">
        
        </ul>--> 
      </div>
    </div>
  </div>
  
  <div class="meun_2">欢迎你，<%= session.getAttribute("uid") %>。 </div>
  <s:debug></s:debug>
  <div class="main">
   
    <div class="right">
	
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p><strong>您的ID为：<%= session.getAttribute("uid") %> </strong></p>
      	       <table width="100%" border="0" cellspacing="0" cellpadding="0" >
          <s:form action="changePwAction" method="post" onsubmit="return validate_form(this)"namespace="/">
    		旧密码     ：<s:password  name="user.password" label="" theme="simple"/><br/>
    		新密码     ：<s:password name="user.newpassword1" label="" theme="simple"/><br/>
    		确认密码：<s:password  name="user.newpassword2" label="" theme="simple"/><br/>	
    		<td colspan="2">
    		<s:submit value="修改"></s:submit> 
            </td>
            <script type="text/javascript">
	  function validate_required(field,alerttxt)
      {
         with (field)
         {
         if (field==null||field=="")
         {alert(alerttxt);return false;}
         else {return true;}
          }
      }
      
      function validate_form(thisform)
      {
         with (thisform)
        {
          if (validate_required(document.getElementById("user.password").value,"请输入旧密码!")==false)
          {document.getElementById("user.password").focus();return false;}
          if (validate_required(document.getElementById("user.newpassword1").value,"请输入新密码!")==false)
          {document.getElementById("user.newpassword1").focus();return false;}
          if (validate_required(document.getElementById("user.newpassword2").value,"请确认新密码!")==false)
          {document.getElementById("user.newpassword2").focus();return false;}
          if(document.getElementById("user.newpassword1").value!=document.getElementById("user.newpassword2").value)
          {alert("两次输入密码不同！");document.getElementById("user.newpassword2").focus();return false;}
          return true;
        }
      }
	  </script> 	
		</s:form> 	
        </table>
    </div>
    <div class="clear"></div>
</div>
<script src="js/meun.js" type="text/javascript"></script>
<div style="display:none"><script src='http://v7.cnzz.com/stat.php?id=155540&web_id=155540' language='JavaScript' charset='gb2312'></script></div></body>
</html>
